home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
xboard.z
/
xboard
/
man
/
cat6
/
cmail.6
next >
Wrap
Text File
|
1994-09-27
|
12KB
|
331 lines
CMAIL(6) GAMES AND DEMOS
NAME
cmail - an email chess helper
SYNOPSIS
cmail [options]
DESCRIPTION
The _c_m_a_i_l program will help you play chess by email with
opponents of your choice using an X interface. To use it,
you will need to be able to run _x_b_o_a_r_d with which _c_m_a_i_l is
distributed, available by anonymous FTP from numerous sites
around the world. It has been tested with _x_b_o_a_r_d _3._1; it may
require modification for other versions.
OPTIONS
You will usually run cmail without giving any options. See
the next section for instructions.
-h Displays _c_m_a_i_l usage information.
-c Shows the conditions of the GNU General Public
License.
-w Shows the warranty notice of the GNU General Public
License.
-[x]v Provides verbose output from _c_m_a_i_l (not _x_b_o_a_r_d) use-
ful for debugging, or inhibits it. The -xv form also
inhibits the cmail introduction message.
-[x]mail
Invokes or inhibits the sending of a mail message
containing the move.
-[x]xboard
Invokes or inhibits the running of _x_b_o_a_r_d on the
game file.
-[x]reuse
Invokes or inhibits the reuse of an existing _x_b_o_a_r_d
to display the current game.
-remail Resends the last mail message for that game. This
inhibits running _x_b_o_a_r_d.
-game _n_a_m_e
The name of the game to be processed.
-opp _n_a_m_e
An alias for the opponent.
-addr _a_d_d_r_e_s_s
ReadyPak 1
CMAIL(6) GAMES AND DEMOS
The opponent's email address.
-event _e_v_e_n_t
The PGN Event tag (default "Email correspondence
game").
-site _s_i_t_e
The PGN Site tag (default "NET").
-round _r_o_u_n_d
The PGN Round tag (default "-", not applicable).
-(white|black) _n_a_m_e
The PGN White/Black name tag (default "?", unknown).
-(white|black)na _n_e_t _a_d_d_r_e_s_s
The PGN White/Black network address tag (default
"?", unknown).
-mode _m_o_d_e
The PGN Mode tag (default "EM", Electronic Mail).
-dir _d_i_r_e_c_t_o_r_y
The directory in which _c_m_a_i_l keeps its files. This
defaults to the environment variable $CHESSDIR or
failing that, $HOME/Chess or ~/Chess. It will be
created if it does not exist.
-mailprog _m_a_i_l _p_r_o_g_r_a_m
The program used by cmail to send email messages.
This defaults to the environment variable
$CMAIL_MAILPROG or failing that "/usr/ucb/Mail",
"/usr/ucb/mail" or "Mail".
-gamesFile _f_i_l_e
A file containing a list of games with email
addresses. This defaults to the environment variable
$CMAIL_GAMES or failing that .cmailgames.
-aliasesFile _f_i_l_e
A file containing one or more aliases for a set of
email addresses. This defaults to the environment
variable $CMAIL_ALIASES or failing that
.cmailaliases.
-logFile _f_i_l_e
A file in which to dump verbose debugging messages
that are invoked with the -v option.
OTHER OPTIONS
Any unrecognised flags will be passed to _x_b_o_a_r_d. Those most
relevant for use with _c_m_a_i_l are:
ReadyPak 2
CMAIL(6) GAMES AND DEMOS
-oldSaveStyle (True | False), or -[x]oldsave
If this option is True, _x_b_o_a_r_d uses the old save
style for saving games, rather than the new PGN for-
mat. Newer versions of _c_m_a_i_l and _x_b_o_a_r_d understand
both formats automatically without using this flag,
so it is only necessary on starting a new game where
Black uses the old _c_m_a_i_l (1.0).
-timeDelay (or -td) _d_e_l_a_y
This sets the speed at which the moves are displayed
on start-up. It defaults to the environment variable
$CMAIL_TIME_DELAY if set, and 0 otherwise.
-noChessProgram (True | False), or -[x]ncp
If this option is False, _x_b_o_a_r_d starts a chess pro-
gram which can be used with _c_m_a_i_l to suggest moves.
Default: True.
-searchTime (or -st) minutes[:seconds]
Tells GNU Chess to spend at most the given amount of
time searching for each of its moves. Without this
option, GNU Chess chooses its search time based on
the number of moves and amount of time remaining
until the next time control.
-searchDepth (or -sd) number
Tells GNU Chess to look ahead at most the given
number of moves when searching for a move to make.
Without this option, GNU Chess chooses its search
depth based on the number of moves and amount of
time remaining until the next time control.
-saveGameFile (or -sgf) file
If this option is set, _x_b_o_a_r_d appends a record of
the game played to the specified file on exit.
-autosave or -autoSaveGames
If this option is True, at the end of every game
_x_b_o_a_r_d prompts you for a filename and appends a
record of the game to the file you specify.
-savePositionFile (or -spf) file
If this option is set, _x_b_o_a_r_d appends the final
position reached to the specified file on exit.
-boardSize (or -size) (Large | Medium | Small)
Determines how large the board will be and what
built-in piece bitmaps will be used. On a large
board (the default), pieces are 80x80 pixels, on a
medium board 64x64 pixels, and on a small board
40x40 pixels.
ReadyPak 3
CMAIL(6) GAMES AND DEMOS
STARTING A GAME
Type _c_m_a_i_l from a shell. After an opening message, you will
be prompted for a game name, which is optional -- if you
simply press return, the game name will take the form _y_o_u-
VS-_o_p_p_o_n_e_n_t. You will next be prompted for the name of your
opponent. If you haven't played this person before, you
will also be prompted for his/her email address. _c_m_a_i_l will
then invoke _x_b_o_a_r_d in the background. Make your first move
and select _M_a_i_l _M_o_v_e from the _F_i_l_e menu. If all is well,
_c_m_a_i_l will mail a copy of the move to your opponent. If you
select _E_x_i_t without having selected _M_a_i_l _M_o_v_e then no move
will be made.
ANSWERING A MOVE
When you receive a message from an opponent containing a
move in one of your games, simply pipe the message through
_c_m_a_i_l. In some mailers this is as simple as typing "|
_c_m_a_i_l" when viewing the message, while in others you may
have to save the message to a file and do "_c_m_a_i_l < file" at
the command line. In either case _c_m_a_i_l will display the
game using _x_b_o_a_r_d. If you didn't exit _x_b_o_a_r_d when you made
your first move then _c_m_a_i_l will do its best to use the
existing _x_b_o_a_r_d instead of starting a new one. As before,
simply make a move and select _M_a_i_l _M_o_v_e from the _F_i_l_e menu.
_c_m_a_i_l will try to use the _x_b_o_a_r_d that was most recently used
to display the current game. This means that many games can
be in progress simultaneously, each with its own active
_x_b_o_a_r_d.
If you want to look at the history or explore a variation,
go ahead, but you must return to the current position before
_x_b_o_a_r_d will allow you to mail a move. If you edit the game's
history you must select _R_e_l_o_a_d _C_M_a_i_l _G_a_m_e from the _F_i_l_e menu
to get back to the original position, then make the move you
want and select _M_a_i_l _M_o_v_e. As before, if you decide you
aren't ready to make a move just yet you can either select
_E_x_i_t without sending a move or just leave _x_b_o_a_r_d running
until you are ready.
TROUBLE SHOOTING
It's possible that a strange conjunction of conditions may
occasionally mean that _c_m_a_i_l has trouble reactivating an
existing _x_b_o_a_r_d. If this should happen trying it again might
work. If not, remove the file that stores the _x_b_o_a_r_d's PID
(<_g_a_m_e>.pid) or use the -_x_r_e_u_s_e option to force _c_m_a_i_l to
start a new _x_b_o_a_r_d.
Older versions of _c_m_a_i_l do not understand the PGN format
which _x_b_o_a_r_d now uses. If your opponent uses an older ver-
sion of _c_m_a_i_l you will need to use the -_o_l_d_s_a_v_e flag to ini-
tiate a game with him/her.
ReadyPak 4
CMAIL(6) GAMES AND DEMOS
FILES
"._c_m_a_i_l_g_a_m_e_s" contains a list of games with the email
addresses of the opponents.
"._c_m_a_i_l_a_l_i_a_s_e_s" contains one or more aliases for a set of
email addresses.
BUGS
No known bugs.
BUG REPORTS
I make no promises but if you send bug reports/suggestions
to welsh@epcc.ed.ac.uk I'll do my best to fix/implement
them.
AUTHOR
Copyright (C) 1993 Free Software Foundation, Inc.
_c_m_a_i_l is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version
2 of the License, or (at your option) any later version.
_c_m_a_i_l is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the GNU General Public License for more details.
You should have received a copy of the GNU General Public
License along with cmail; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Author: Evan Welsh <welsh@epcc.ed.ac.uk>
Edinburgh Parallel Computing Centre
JCMB, Kings Buildings
The University of Edinburgh
Edinburgh EH9 3JZ
Scotland
CONTRIBUTORS
Patrick Surry helped with design, testing and documentation.
Tim Mann helped integrate _c_m_a_i_l with _x_b_o_a_r_d.
SEE ALSO
_x_b_o_a_r_d(1)
ReadyPak 5